
<template>
  <RouterView />
</template>
<script setup>
import { onMounted,ref } from 'vue';
import { useUserStore } from './store/user';
const user = ref()
const userStore = useUserStore()
onMounted(()=> {
  console.log("已经创建完成vue...");
  user.value = userStore.getUserName()
  console.log("当前用户为：" + JSON.stringify(user.value));
})
</script>